package cn.lhjl.day04.Usb接口案例;

public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        Usb usb1 = new Mouse();
        Usb usb2 = new Keyboard();
        computer.open();
        computer.usbDevice(usb1);
        computer.usbDevice(usb2);
        computer.close();

    }
}
